home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / ExtUtils::MakeMaker.z / ExtUtils::MakeMaker
Encoding:
Text File  |  1998-10-30  |  45.7 KB  |  1,255 lines

  1.  
  2.  
  3.  
  4. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ExtUtils::MakeMaker - create an extension Makefile
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      use ExtUtils::MakeMaker;
  13.  
  14.      _W_r_i_t_e_M_a_k_e_f_i_l_e( ATTRIBUTE => VALUE [, ...] );
  15.  
  16.      which is really
  17.  
  18.      MM->_n_e_w(\%att)->flush;
  19.  
  20. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      This utility is designed to write a Makefile for an extension module from
  22.      a Makefile.PL. It is based on the Makefile.SH model provided by Andy
  23.      Dougherty and the perl5-porters.
  24.  
  25.      It splits the task of generating the Makefile into several subroutines
  26.      that can be individually overridden.  Each subroutine returns the text it
  27.      wishes to have written to the Makefile.
  28.  
  29.      MakeMaker is object oriented. Each directory below the current directory
  30.      that contains a Makefile.PL. Is treated as a separate object. This makes
  31.      it possible to write an unlimited number of Makefiles with a single
  32.      invocation of _W_r_i_t_e_M_a_k_e_f_i_l_e().
  33.  
  34.      HHHHoooowwww TTTToooo WWWWrrrriiiitttteeee AAAA MMMMaaaakkkkeeeeffffiiiilllleeee....PPPPLLLL
  35.  
  36.      The short answer is: Don't.
  37.  
  38.              Always begin with h2xs.
  39.              Always begin with h2xs!
  40.              ALWAYS BEGIN WITH H2XS!
  41.  
  42.      even if you're not building around a header file, and even if you don't
  43.      have an XS component.
  44.  
  45.      Run _h_2_x_s(1) before you start thinking about writing a module. For so
  46.      called pm-only modules that consist of *.pm files only, h2xs has the -X
  47.      switch. This will generate dummy files of all kinds that are useful for
  48.      the module developer.
  49.  
  50.      The medium answer is:
  51.  
  52.          use ExtUtils::MakeMaker;
  53.          WriteMakefile( NAME => "Foo::Bar" );
  54.  
  55.      The long answer is the rest of the manpage :-)
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  71.  
  72.  
  73.  
  74.      DDDDeeeeffffaaaauuuulllltttt MMMMaaaakkkkeeeeffffiiiilllleeee BBBBeeeehhhhaaaavvvviiiioooouuuurrrr
  75.  
  76.      The generated Makefile enables the user of the extension to invoke
  77.  
  78.        perl Makefile.PL # optionally "perl Makefile.PL verbose"
  79.        make
  80.        make test        # optionally set TEST_VERBOSE=1
  81.        make install     # See below
  82.  
  83.      The Makefile to be produced may be altered by adding arguments of the
  84.      form KEY=VALUE. E.g.
  85.  
  86.        perl Makefile.PL PREFIX=/tmp/myperl5
  87.  
  88.      Other interesting targets in the generated Makefile are
  89.  
  90.        make config     # to check if the Makefile is up-to-date
  91.        make clean      # delete local temp files (Makefile gets renamed)
  92.        make realclean  # delete derived files (including ./blib)
  93.        make ci         # check in all the files in the MANIFEST file
  94.        make dist       # see below the Distribution Support section
  95.  
  96.  
  97.      mmmmaaaakkkkeeee tttteeeesssstttt
  98.  
  99.      MakeMaker checks for the existence of a file named _t_e_s_t._p_l in the current
  100.      directory and if it exists it adds commands to the test target of the
  101.      generated Makefile that will execute the script with the proper set of
  102.      perl -I options.
  103.  
  104.      MakeMaker also checks for any files matching _g_l_o_b("t/*.t"). It will add
  105.      commands to the test target of the generated Makefile that execute all
  106.      matching files via the the _T_e_s_t::_H_a_r_n_e_s_s manpage module with the -I
  107.      switches set correctly.
  108.  
  109.      mmmmaaaakkkkeeee tttteeeessssttttddddbbbb
  110.  
  111.      A useful variation of the above is the target testdb. It runs the test
  112.      under the Perl debugger (see the _p_e_r_l_d_e_b_u_g manpage). If the file _t_e_s_t._p_l
  113.      exists in the current directory, it is used for the test.
  114.  
  115.      If you want to debug some other testfile, set TEST_FILE variable thusly:
  116.  
  117.        make testdb TEST_FILE=t/mytest.t
  118.  
  119.      By default the debugger is called using -d option to perl. If you want to
  120.      specify some other option, set TESTDB_SW variable:
  121.  
  122.        make testdb TESTDB_SW=-Dx
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  137.  
  138.  
  139.  
  140.      mmmmaaaakkkkeeee iiiinnnnssssttttaaaallllllll
  141.  
  142.      make alone puts all relevant files into directories that are named by the
  143.      macros INST_LIB, INST_ARCHLIB, INST_SCRIPT, INST_MAN1DIR, and
  144.      INST_MAN3DIR. All these default to something below ./blib if you are _n_o_t
  145.      building below the perl source directory. If you _a_r_e building below the
  146.      perl source, INST_LIB and INST_ARCHLIB default to
  147.       ../../lib, and INST_SCRIPT is not defined.
  148.  
  149.      The _i_n_s_t_a_l_l target of the generated Makefile copies the files found below
  150.      each of the INST_* directories to their INSTALL* counterparts. Which
  151.      counterparts are chosen depends on the setting of INSTALLDIRS according
  152.      to the following table:
  153.  
  154.                                 INSTALLDIRS set to
  155.                              perl              site
  156.  
  157.          INST_ARCHLIB    INSTALLARCHLIB    INSTALLSITEARCH
  158.          INST_LIB        INSTALLPRIVLIB    INSTALLSITELIB
  159.          INST_BIN                  INSTALLBIN
  160.          INST_SCRIPT              INSTALLSCRIPT
  161.          INST_MAN1DIR             INSTALLMAN1DIR
  162.          INST_MAN3DIR             INSTALLMAN3DIR
  163.  
  164.      The INSTALL... macros in turn default to their %Config
  165.      ($Config{installprivlib}, $Config{installarchlib}, etc.) counterparts.
  166.  
  167.      You can check the values of these variables on your system with
  168.  
  169.          perl '-V:install.*'
  170.  
  171.      And to check the sequence in which the library directories are searched
  172.      by perl, run
  173.  
  174.          perl -le 'print join $/, @INC'
  175.  
  176.  
  177.      PPPPRRRREEEEFFFFIIIIXXXX aaaannnndddd LLLLIIIIBBBB aaaattttttttrrrriiiibbbbuuuutttteeee
  178.  
  179.      PREFIX and LIB can be used to set several INSTALL* attributes in one go.
  180.      The quickest way to install a module in a non-standard place might be
  181.  
  182.          perl Makefile.PL LIB=~/lib
  183.  
  184.      This will install the module's architecture-independent files into ~/lib,
  185.      the architecture-dependent files into ~/lib/$archname/auto.
  186.  
  187.      Another way to specify many INSTALL directories with a single parameter
  188.      is PREFIX.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  203.  
  204.  
  205.  
  206.          perl Makefile.PL PREFIX=~
  207.  
  208.      This will replace the string specified by $Config{prefix} in all
  209.      $Config{install*} values.
  210.  
  211.      Note, that in both cases the tilde expansion is done by MakeMaker, not by
  212.      perl by default, nor by make. Conflicts between parmeters LIB, PREFIX and
  213.      the various INSTALL* arguments are resolved so that XXX
  214.  
  215.      If the user has superuser privileges, and is not working on AFS (Andrew
  216.      File System) or relatives, then the defaults for INSTALLPRIVLIB,
  217.      INSTALLARCHLIB, INSTALLSCRIPT, etc. will be appropriate, and this
  218.      incantation will be the best:
  219.  
  220.          perl Makefile.PL; make; make test
  221.          make install
  222.  
  223.      make install per default writes some documentation of what has been done
  224.      into the file $(INSTALLARCHLIB)/perllocal.pod. This feature can be
  225.      bypassed by calling make pure_install.
  226.  
  227.      AAAAFFFFSSSS uuuusssseeeerrrrssss
  228.  
  229.      will have to specify the installation directories as these most probably
  230.      have changed since perl itself has been installed. They will have to do
  231.      this by calling
  232.  
  233.          perl Makefile.PL INSTALLSITELIB=/afs/here/today \
  234.              INSTALLSCRIPT=/afs/there/now INSTALLMAN3DIR=/afs/for/manpages
  235.          make
  236.  
  237.      Be careful to repeat this procedure every time you recompile an
  238.      extension, unless you are sure the AFS installation directories are still
  239.      valid.
  240.  
  241.      SSSSttttaaaattttiiiicccc LLLLiiiinnnnkkkkiiiinnnngggg ooooffff aaaa nnnneeeewwww PPPPeeeerrrrllll BBBBiiiinnnnaaaarrrryyyy
  242.  
  243.      An extension that is built with the above steps is ready to use on
  244.      systems supporting dynamic loading. On systems that do not support
  245.      dynamic loading, any newly created extension has to be linked together
  246.      with the available resources. MakeMaker supports the linking process by
  247.      creating appropriate targets in the Makefile whenever an extension is
  248.      built. You can invoke the corresponding section of the makefile with
  249.  
  250.          make perl
  251.  
  252.      That produces a new perl binary in the current directory with all
  253.      extensions linked in that can be found in INST_ARCHLIB , SITELIBEXP, and
  254.      PERL_ARCHLIB. To do that, MakeMaker writes a new Makefile, on UNIX, this
  255.      is called Makefile.aperl (may be system dependent). If you want to force
  256.      the creation of a new perl, it is recommended, that you delete this
  257.      Makefile.aperl, so the directories are searched-through for linkable
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  269.  
  270.  
  271.  
  272.      libraries again.
  273.  
  274.      The binary can be installed into the directory where perl normally
  275.      resides on your machine with
  276.  
  277.          make inst_perl
  278.  
  279.      To produce a perl binary with a different name than perl, either say
  280.  
  281.          perl Makefile.PL MAP_TARGET=myperl
  282.          make myperl
  283.          make inst_perl
  284.  
  285.      or say
  286.  
  287.          perl Makefile.PL
  288.          make myperl MAP_TARGET=myperl
  289.          make inst_perl MAP_TARGET=myperl
  290.  
  291.      In any case you will be prompted with the correct invocation of the
  292.      inst_perl target that installs the new binary into INSTALLBIN.
  293.  
  294.      make inst_perl per default writes some documentation of what has been
  295.      done into the file $(INSTALLARCHLIB)/perllocal.pod. This can be bypassed
  296.      by calling make pure_inst_perl.
  297.  
  298.      Warning: the inst_perl: target will most probably overwrite your existing
  299.      perl binary. Use with care!
  300.  
  301.      Sometimes you might want to build a statically linked perl although your
  302.      system supports dynamic loading. In this case you may explicitly set the
  303.      linktype with the invocation of the Makefile.PL or make:
  304.  
  305.          perl Makefile.PL LINKTYPE=static    # recommended
  306.  
  307.      or
  308.  
  309.          make LINKTYPE=static                # works on most systems
  310.  
  311.  
  312.      DDDDeeeetttteeeerrrrmmmmiiiinnnnaaaattttiiiioooonnnn ooooffff PPPPeeeerrrrllll LLLLiiiibbbbrrrraaaarrrryyyy aaaannnndddd IIIInnnnssssttttaaaallllllllaaaattttiiiioooonnnn LLLLooooccccaaaattttiiiioooonnnnssss
  313.  
  314.      MakeMaker needs to know, or to guess, where certain things are located.
  315.      Especially INST_LIB and INST_ARCHLIB (where to put the files during the
  316.      _m_a_k_e(1) run), PERL_LIB and PERL_ARCHLIB (where to read existing modules
  317.      from), and PERL_INC (header files and libperl*.*).
  318.  
  319.      Extensions may be built either using the contents of the perl source
  320.      directory tree or from the installed perl library. The recommended way is
  321.      to build extensions after you have run 'make install' on perl itself. You
  322.      can do that in any directory on your hard disk that is not below the perl
  323.      source tree. The support for extensions below the ext directory of the
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  335.  
  336.  
  337.  
  338.      perl distribution is only good for the standard extensions that come with
  339.      perl.
  340.  
  341.      If an extension is being built below the ext/ directory of the perl
  342.      source then MakeMaker will set PERL_SRC automatically (e.g., ../..).  If
  343.      PERL_SRC is defined and the extension is recognized as a standard
  344.      extension, then other variables default to the following:
  345.  
  346.        PERL_INC     = PERL_SRC
  347.        PERL_LIB     = PERL_SRC/lib
  348.        PERL_ARCHLIB = PERL_SRC/lib
  349.        INST_LIB     = PERL_LIB
  350.        INST_ARCHLIB = PERL_ARCHLIB
  351.  
  352.      If an extension is being built away from the perl source then MakeMaker
  353.      will leave PERL_SRC undefined and default to using the installed copy of
  354.      the perl library. The other variables default to the following:
  355.  
  356.        PERL_INC     = $archlibexp/CORE
  357.        PERL_LIB     = $privlibexp
  358.        PERL_ARCHLIB = $archlibexp
  359.        INST_LIB     = ./blib/lib
  360.        INST_ARCHLIB = ./blib/arch
  361.  
  362.      If perl has not yet been installed then PERL_SRC can be defined on the
  363.      command line as shown in the previous section.
  364.  
  365.      WWWWhhhhiiiicccchhhh aaaarrrrcccchhhhiiiitttteeeeccccttttuuuurrrreeee ddddeeeeppppeeeennnnddddeeeennnntttt ddddiiiirrrreeeeccccttttoooorrrryyyy????
  366.  
  367.      If you don't want to keep the defaults for the INSTALL* macros, MakeMaker
  368.      helps you to minimize the typing needed: the usual relationship between
  369.      INSTALLPRIVLIB and INSTALLARCHLIB is determined by Configure at perl
  370.      compilation time. MakeMaker supports the user who sets INSTALLPRIVLIB. If
  371.      INSTALLPRIVLIB is set, but INSTALLARCHLIB not, then MakeMaker defaults
  372.      the latter to be the same subdirectory of INSTALLPRIVLIB as Configure
  373.      decided for the counterparts in %Config , otherwise it defaults to
  374.      INSTALLPRIVLIB. The same relationship holds for INSTALLSITELIB and
  375.      INSTALLSITEARCH.
  376.  
  377.      MakeMaker gives you much more freedom than needed to configure internal
  378.      variables and get different results. It is worth to mention, that _m_a_k_e(1)
  379.      also lets you configure most of the variables that are used in the
  380.      Makefile. But in the majority of situations this will not be necessary,
  381.      and should only be done, if the author of a package recommends it (or you
  382.      know what you're doing).
  383.  
  384.      UUUUssssiiiinnnngggg AAAAttttttttrrrriiiibbbbuuuutttteeeessss aaaannnndddd PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss
  385.  
  386.      The following attributes can be specified as arguments to _W_r_i_t_e_M_a_k_e_f_i_l_e()
  387.      or as NAME=VALUE pairs on the command line:
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  401.  
  402.  
  403.  
  404.      C Ref to array of *.c file names. Initialised from a directory scan and
  405.        the values portion of the XS attribute hash. This is not currently used
  406.        by MakeMaker but may be handy in Makefile.PLs.
  407.  
  408.      CCFLAGS
  409.        String that will be included in the compiler call command line between
  410.        the arguments INC and OPTIMIZE.
  411.  
  412.      CONFIG
  413.        Arrayref. E.g. [_q_w(archname manext)] defines ARCHNAME & MANEXT from
  414.        config.sh. MakeMaker will add to CONFIG the following values anyway:
  415.        ar cc cccdlflags ccdlflags dlext dlsrc ld lddlflags ldflags libc
  416.        lib_ext obj_ext ranlib sitelibexp sitearchexp so
  417.  
  418.      CONFIGURE
  419.        CODE reference. The subroutine should return a hash reference. The hash
  420.        may contain further attributes, e.g. {LIBS => ...}, that have to be
  421.        determined by some evaluation method.
  422.  
  423.      DEFINE
  424.        Something like "-DHAVE_UNISTD_H"
  425.  
  426.      DIR
  427.        Ref to array of subdirectories containing Makefile.PLs e.g. [ 'sdbm' ]
  428.        in ext/SDBM_File
  429.  
  430.      DISTNAME
  431.        Your name for distributing the package (by tar file). This defaults to
  432.        NAME above.
  433.  
  434.      DL_FUNCS
  435.        Hashref of symbol names for routines to be made available as universal
  436.        symbols.  Each key/value pair consists of the package name and an array
  437.        of routine names in that package.  Used only under AIX (export lists)
  438.        and VMS (linker options) at present.  The routine names supplied will
  439.        be expanded in the same way as XSUB names are expanded by the _X_S()
  440.        macro.  Defaults to
  441.  
  442.          {"$(NAME)" => ["boot_$(NAME)" ] }
  443.  
  444.        e.g.
  445.  
  446.          {"RPC" => [qw( boot_rpcb rpcb_gettime getnetconfigent )],
  447.           "NetconfigPtr" => [ 'DESTROY'] }
  448.  
  449.  
  450.      DL_VARS
  451.        Array of symbol names for variables to be made available as universal
  452.        symbols.  Used only under AIX (export lists) and VMS (linker options)
  453.        at present.  Defaults to [].  (e.g. [ _q_w( Foo_version Foo_numstreams
  454.        Foo_tree ) ])
  455.  
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  467.  
  468.  
  469.  
  470.      EXCLUDE_EXT
  471.        Array of extension names to exclude when doing a static build.  This is
  472.        ignored if INCLUDE_EXT is present.  Consult INCLUDE_EXT for more
  473.        details.  (e.g.  [ _q_w( Socket POSIX ) ] )
  474.  
  475.        This attribute may be most useful when specified as a string on the
  476.        commandline:  perl Makefile.PL EXCLUDE_EXT='Socket Safe'
  477.  
  478.      EXE_FILES
  479.        Ref to array of executable files. The files will be copied to the
  480.        INST_SCRIPT directory. Make realclean will delete them from there
  481.        again.
  482.  
  483.      NO_VC
  484.        In general any generated Makefile checks for the current version of
  485.        MakeMaker and the version the Makefile was built under. If NO_VC is
  486.        set, the version check is neglected. Do not write this into your
  487.        Makefile.PL, use it interactively instead.
  488.  
  489.      FIRST_MAKEFILE
  490.        The name of the Makefile to be produced. Defaults to the contents of
  491.        MAKEFILE, but can be overridden. This is used for the second Makefile
  492.        that will be produced for the MAP_TARGET.
  493.  
  494.      FULLPERL
  495.        Perl binary able to run this extension.
  496.  
  497.      H Ref to array of *.h file names. Similar to C.
  498.  
  499.      IMPORTS
  500.        IMPORTS is only used on OS/2.
  501.  
  502.      INC
  503.        Include file dirs eg: "-I/usr/5include -I/path/to/inc"
  504.  
  505.      INCLUDE_EXT
  506.        Array of extension names to be included when doing a static build.
  507.        MakeMaker will normally build with all of the installed extensions when
  508.        doing a static build, and that is usually the desired behavior.  If
  509.        INCLUDE_EXT is present then MakeMaker will build only with those
  510.        extensions which are explicitly mentioned. (e.g.  [ _q_w( Socket POSIX )
  511.        ])
  512.  
  513.        It is not necessary to mention DynaLoader or the current extension when
  514.        filling in INCLUDE_EXT.  If the INCLUDE_EXT is mentioned but is empty
  515.        then only DynaLoader and the current extension will be included in the
  516.        build.
  517.  
  518.        This attribute may be most useful when specified as a string on the
  519.        commandline:  perl Makefile.PL INCLUDE_EXT='POSIX Socket Devel::Peek'
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  533.  
  534.  
  535.  
  536.      INSTALLARCHLIB
  537.        Used by 'make install', which copies files from INST_ARCHLIB to this
  538.        directory if INSTALLDIRS is set to perl.
  539.  
  540.      INSTALLBIN
  541.        Directory to install binary files (e.g. tkperl) into.
  542.  
  543.      INSTALLDIRS
  544.        Determines which of the two sets of installation directories to choose:
  545.        installprivlib and installarchlib versus installsitelib and
  546.        installsitearch. The first pair is chosen with INSTALLDIRS=perl, the
  547.        second with INSTALLDIRS=site. Default is site.
  548.  
  549.      INSTALLMAN1DIR
  550.        This directory gets the man pages at 'make install' time. Defaults to
  551.        $Config{installman1dir}.
  552.  
  553.      INSTALLMAN3DIR
  554.        This directory gets the man pages at 'make install' time. Defaults to
  555.        $Config{installman3dir}.
  556.  
  557.      INSTALLPRIVLIB
  558.        Used by 'make install', which copies files from INST_LIB to this
  559.        directory if INSTALLDIRS is set to perl.
  560.  
  561.      INSTALLSCRIPT
  562.        Used by 'make install' which copies files from INST_SCRIPT to this
  563.        directory.
  564.  
  565.      INSTALLSITELIB
  566.        Used by 'make install', which copies files from INST_LIB to this
  567.        directory if INSTALLDIRS is set to site (default).
  568.  
  569.      INSTALLSITEARCH
  570.        Used by 'make install', which copies files from INST_ARCHLIB to this
  571.        directory if INSTALLDIRS is set to site (default).
  572.  
  573.      INST_ARCHLIB
  574.        Same as INST_LIB for architecture dependent files.
  575.  
  576.      INST_BIN
  577.        Directory to put real binary files during 'make'. These will be copied
  578.        to INSTALLBIN during 'make install'
  579.  
  580.      INST_EXE
  581.        Old name for INST_SCRIPT. Deprecated. Please use INST_SCRIPT if you
  582.        need to use it.
  583.  
  584.      INST_LIB
  585.        Directory where we put library files of this extension while building
  586.        it.
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  599.  
  600.  
  601.  
  602.      INST_MAN1DIR
  603.        Directory to hold the man pages at 'make' time
  604.  
  605.      INST_MAN3DIR
  606.        Directory to hold the man pages at 'make' time
  607.  
  608.      INST_SCRIPT
  609.        Directory, where executable files should be installed during 'make'.
  610.        Defaults to "./blib/bin", just to have a dummy location during testing.
  611.        make install will copy the files in INST_SCRIPT to INSTALLSCRIPT.
  612.  
  613.      LDFROM
  614.        defaults to "$(OBJECT)" and is used in the ld command to specify what
  615.        files to link/load from (also see dynamic_lib below for how to specify
  616.        ld flags)
  617.  
  618.      LIBPERL_A
  619.        The filename of the perllibrary that will be used together with this
  620.        extension. Defaults to libperl.a.
  621.  
  622.      LIB
  623.        LIB can only be set at perl Makefile.PL time. It has the effect of
  624.        setting both INSTALLPRIVLIB and INSTALLSITELIB to that value regardless
  625.        any
  626.  
  627.      LIBS
  628.        An anonymous array of alternative library specifications to be searched
  629.        for (in order) until at least one library is found. E.g.
  630.  
  631.          'LIBS' => ["-lgdbm", "-ldbm -lfoo", "-L/path -ldbm.nfs"]
  632.  
  633.        Mind, that any element of the array contains a complete set of
  634.        arguments for the ld command. So do not specify
  635.  
  636.          'LIBS' => ["-ltcl", "-ltk", "-lX11"]
  637.  
  638.        See ODBM_File/Makefile.PL for an example, where an array is needed. If
  639.        you specify a scalar as in
  640.  
  641.          'LIBS' => "-ltcl -ltk -lX11"
  642.  
  643.        MakeMaker will turn it into an array with one element.
  644.  
  645.      LINKTYPE
  646.        'static' or 'dynamic' (default unless usedl=undef in config.sh). Should
  647.        only be used to force static linking (also see linkext below).
  648.  
  649.      MAKEAPERL
  650.        Boolean which tells MakeMaker, that it should include the rules to make
  651.        a perl. This is handled automatically as a switch by MakeMaker. The
  652.        user normally does not need it.
  653.  
  654.  
  655.  
  656.  
  657.                                                                        PPPPaaaaggggeeee 11110000
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  665.  
  666.  
  667.  
  668.      MAKEFILE
  669.        The name of the Makefile to be produced.
  670.  
  671.      MAN1PODS
  672.        Hashref of pod-containing files. MakeMaker will default this to all
  673.        EXE_FILES files that include POD directives. The files listed here will
  674.        be converted to man pages and installed as was requested at Configure
  675.        time.
  676.  
  677.      MAN3PODS
  678.        Hashref of .pm and .pod files. MakeMaker will default this to all
  679.         .pod and any .pm files that include POD directives. The files listed
  680.        here will be converted to man pages and installed as was requested at
  681.        Configure time.
  682.  
  683.      MAP_TARGET
  684.        If it is intended, that a new perl binary be produced, this variable
  685.        may hold a name for that binary. Defaults to perl
  686.  
  687.      MYEXTLIB
  688.        If the extension links to a library that it builds set this to the name
  689.        of the library (see SDBM_File)
  690.  
  691.      NAME
  692.        Perl module name for this extension (DBD::Oracle). This will default to
  693.        the directory name but should be explicitly defined in the Makefile.PL.
  694.  
  695.      NEEDS_LINKING
  696.        MakeMaker will figure out, if an extension contains linkable code
  697.        anywhere down the directory tree, and will set this variable
  698.        accordingly, but you can speed it up a very little bit, if you define
  699.        this boolean variable yourself.
  700.  
  701.      NOECHO
  702.        Defaults to @. By setting it to an empty string you can generate a
  703.        Makefile that echos all commands. Mainly used in debugging MakeMaker
  704.        itself.
  705.  
  706.      NORECURS
  707.        Boolean.  Attribute to inhibit descending into subdirectories.
  708.  
  709.      OBJECT
  710.        List of object files, defaults to '$(BASEEXT)$(OBJ_EXT)', but can be a
  711.        long string containing all object files, e.g. "tkpBind.o tkpButton.o
  712.        tkpCanvas.o"
  713.  
  714.      OPTIMIZE
  715.        Defaults to -O. Set it to -g to turn debugging on. The flag is passed
  716.        to subdirectory makes.
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.                                                                        PPPPaaaaggggeeee 11111111
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  731.  
  732.  
  733.  
  734.      PERL
  735.        Perl binary for tasks that can be done by miniperl
  736.  
  737.      PERLMAINCC
  738.        The call to the program that is able to compile perlmain.c. Defaults to
  739.        $(CC).
  740.  
  741.      PERL_ARCHLIB
  742.        Same as above for architecture dependent files
  743.  
  744.      PERL_LIB
  745.        Directory containing the Perl library to use.
  746.  
  747.      PERL_SRC
  748.        Directory containing the Perl source code (use of this should be
  749.        avoided, it may be undefined)
  750.  
  751.      PL_FILES
  752.        Ref to hash of files to be processed as perl programs. MakeMaker will
  753.        default to any found *.PL file (except Makefile.PL) being keys and the
  754.        basename of the file being the value. E.g.
  755.  
  756.          {'foobar.PL' => 'foobar'}
  757.  
  758.        The *.PL files are expected to produce output to the target files
  759.        themselves.
  760.  
  761.      PM
  762.        Hashref of .pm files and *.pl files to be installed.  e.g.
  763.  
  764.          {'name_of_file.pm' => '$(INST_LIBDIR)/install_as.pm'}
  765.  
  766.        By default this will include *.pm and *.pl. If a lib directory exists
  767.        and is not listed in DIR (above) then any *.pm and *.pl files it
  768.        contains will also be included by default.  Defining PM in the
  769.        Makefile.PL will override PMLIBDIRS.
  770.  
  771.      PMLIBDIRS
  772.        Ref to array of subdirectories containing library files.  Defaults to [
  773.        'lib', $(BASEEXT) ]. The directories will be scanned and any files they
  774.        contain will be installed in the corresponding location in the library.
  775.        A _l_i_b_s_c_a_n() method can be used to alter the behaviour.  Defining PM in
  776.        the Makefile.PL will override PMLIBDIRS.
  777.  
  778.      PREFIX
  779.        Can be used to set the three INSTALL* attributes in one go (except for
  780.        probably INSTALLMAN1DIR, if it is not below PREFIX according to
  781.        %Config).  They will have PREFIX as a common directory node and will
  782.        branch from that node into lib/, lib/ARCHNAME or whatever Configure
  783.        decided at the build time of your perl (unless you override one of
  784.        them, of course).
  785.  
  786.  
  787.  
  788.  
  789.                                                                        PPPPaaaaggggeeee 11112222
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  797.  
  798.  
  799.  
  800.      PREREQ_PM
  801.        Hashref: Names of modules that need to be available to run this
  802.        extension (e.g. Fcntl for SDBM_File) are the keys of the hash and the
  803.        desired version is the value. If the required version number is 0, we
  804.        only check if any version is installed already.
  805.  
  806.      SKIP
  807.        Arryref. E.g. [_q_w(name1 name2)] skip (do not write) sections of the
  808.        Makefile. Caution! Do not use the SKIP attribute for the neglectible
  809.        speedup. It may seriously damage the resulting Makefile. Only use it,
  810.        if you really need it.
  811.  
  812.      TYPEMAPS
  813.        Ref to array of typemap file names.  Use this when the typemaps are in
  814.        some directory other than the current directory or when they are not
  815.        named ttttyyyyppppeeeemmmmaaaapppp.  The last typemap in the list takes precedence.  A
  816.        typemap in the current directory has highest precedence, even if it
  817.        isn't listed in TYPEMAPS.  The default system typemap has lowest
  818.        precedence.
  819.  
  820.      VERSION
  821.        Your version number for distributing the package.  This defaults to
  822.        0.1.
  823.  
  824.      VERSION_FROM
  825.        Instead of specifying the VERSION in the Makefile.PL you can let
  826.        MakeMaker parse a file to determine the version number. The parsing
  827.        routine requires that the file named by VERSION_FROM contains one
  828.        single line to compute the version number. The first line in the file
  829.        that contains the regular expression
  830.  
  831.            /([\$*])(([\w\:\']*)\bVERSION)\b.*\=/
  832.  
  833.        will be evaluated with _e_v_a_l() and the value of the named variable aaaafffftttteeeerrrr
  834.        the _e_v_a_l() will be assigned to the VERSION attribute of the MakeMaker
  835.        object. The following lines will be parsed o.k.:
  836.  
  837.            $VERSION = '1.00';
  838.            *VERSION = \'1.01';
  839.            ( $VERSION ) = '$Revision: 1.216 $ ' =~ /\$Revision:\s+([^\s]+)/;
  840.            $FOO::VERSION = '1.10';
  841.            *FOO::VERSION = \'1.11';
  842.  
  843.        but these will fail:
  844.  
  845.            my $VERSION = '1.01';
  846.            local $VERSION = '1.02';
  847.            local $FOO::VERSION = '1.30';
  848.  
  849.        The file named in VERSION_FROM is not added as a dependency to
  850.        Makefile. This is not really correct, but it would be a major pain
  851.        during development to have to rewrite the Makefile for any smallish
  852.  
  853.  
  854.  
  855.                                                                        PPPPaaaaggggeeee 11113333
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  863.  
  864.  
  865.  
  866.        change in that file. If you want to make sure that the Makefile
  867.        contains the correct VERSION macro after any change of the file, you
  868.        would have to do something like
  869.  
  870.            depend => { Makefile => '$(VERSION_FROM)' }
  871.  
  872.        See attribute depend below.
  873.  
  874.      XS
  875.        Hashref of .xs files. MakeMaker will default this.  e.g.
  876.  
  877.          {'name_of_file.xs' => 'name_of_file.c'}
  878.  
  879.        The .c files will automatically be included in the list of files
  880.        deleted by a make clean.
  881.  
  882.      XSOPT
  883.        String of options to pass to xsubpp.  This might include -C++ or
  884.        -extern.  Do not include typemaps here; the TYPEMAP parameter exists
  885.        for that purpose.
  886.  
  887.      XSPROTOARG
  888.        May be set to an empty string, which is identical to -prototypes, or
  889.        -noprototypes. See the xsubpp documentation for details. MakeMaker
  890.        defaults to the empty string.
  891.  
  892.      XS_VERSION
  893.        Your version number for the .xs file of this package.  This defaults to
  894.        the value of the VERSION attribute.
  895.  
  896.      AAAAddddddddiiiittttiiiioooonnnnaaaallll lllloooowwwweeeerrrrccccaaaasssseeee aaaattttttttrrrriiiibbbbuuuutttteeeessss
  897.  
  898.      can be used to pass parameters to the methods which implement that part
  899.      of the Makefile.
  900.  
  901.      clean
  902.  
  903.          {FILES => "*.xyz foo"}
  904.  
  905.  
  906.      depend
  907.  
  908.          {ANY_TARGET => ANY_DEPENDECY, ...}
  909.  
  910.  
  911.      dist
  912.  
  913.          {TARFLAGS => 'cvfF', COMPRESS => 'gzip', SUFFIX => 'gz',
  914.          SHAR => 'shar -m', DIST_CP => 'ln', ZIP => '/bin/zip',
  915.          ZIPFLAGS => '-rl', DIST_DEFAULT => 'private tardist' }
  916.  
  917.        If you specify COMPRESS, then SUFFIX should also be altered, as it is
  918.  
  919.  
  920.  
  921.                                                                        PPPPaaaaggggeeee 11114444
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  929.  
  930.  
  931.  
  932.        needed to tell make the target file of the compression. Setting DIST_CP
  933.        to ln can be useful, if you need to preserve the timestamps on your
  934.        files. DIST_CP can take the values 'cp', which copies the file, 'ln',
  935.        which links the file, and 'best' which copies symbolic links and links
  936.        the rest. Default is 'best'.
  937.  
  938.      dynamic_lib
  939.  
  940.          {ARMAYBE => 'ar', OTHERLDFLAGS => '...', INST_DYNAMIC_DEP => '...'}
  941.  
  942.  
  943.      installpm
  944.        Deprecated as of MakeMaker 5.23. See the pm_to_blib entry in the
  945.        _E_x_t_U_t_i_l_s::_M_M__U_n_i_x manpage.
  946.  
  947.      linkext
  948.  
  949.          {LINKTYPE => 'static', 'dynamic' or ''}
  950.  
  951.        NB: Extensions that have nothing but *.pm files had to say
  952.  
  953.          {LINKTYPE => ''}
  954.  
  955.        with Pre-5.0 MakeMakers. Since version 5.00 of MakeMaker such a line
  956.        can be deleted safely. MakeMaker recognizes, when there's nothing to be
  957.        linked.
  958.  
  959.      macro
  960.  
  961.          {ANY_MACRO => ANY_VALUE, ...}
  962.  
  963.  
  964.      realclean
  965.  
  966.          {FILES => '$(INST_ARCHAUTODIR)/*.xyz'}
  967.  
  968.  
  969.      tool_autosplit
  970.  
  971.          {MAXLEN =E<gt> 8}
  972.  
  973.  
  974.      OOOOvvvveeeerrrrrrrriiiiddddiiiinnnngggg MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr MMMMeeeetttthhhhooooddddssss
  975.  
  976.      If you cannot achieve the desired Makefile behaviour by specifying
  977.      attributes you may define private subroutines in the Makefile.PL.  Each
  978.      subroutines returns the text it wishes to have written to the Makefile.
  979.      To override a section of the Makefile you can either say:
  980.  
  981.              sub MY::c_o { "new literal text" }
  982.  
  983.      or you can edit the default by saying something like:
  984.  
  985.  
  986.  
  987.                                                                        PPPPaaaaggggeeee 11115555
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  995.  
  996.  
  997.  
  998.              sub MY::c_o {
  999.                  package MY; # so that "SUPER" works right
  1000.                  my $inherited = shift->SUPER::c_o(@_);
  1001.                  $inherited =~ s/old text/new text/;
  1002.                  $inherited;
  1003.              }
  1004.  
  1005.      If you running experiments with embedding perl as a library into other
  1006.      applications, you might find MakeMaker not sufficient. You'd better have
  1007.      a look at ExtUtils::embed which is a collection of utilities for
  1008.      embedding.
  1009.  
  1010.      If you still need a different solution, try to develop another
  1011.      subroutine, that fits your needs and submit the diffs to _p_e_r_l_5-
  1012.      _p_o_r_t_e_r_s@_n_i_c_o_h._c_o_m or _c_o_m_p._l_a_n_g._p_e_r_l._m_i_s_c as appropriate.
  1013.  
  1014.      For a complete description of all MakeMaker methods see the
  1015.      _E_x_t_U_t_i_l_s::_M_M__U_n_i_x manpage.
  1016.  
  1017.      Here is a simple example of how to add a new target to the generated
  1018.      Makefile:
  1019.  
  1020.          sub MY::postamble {
  1021.              '
  1022.          $(MYEXTLIB): sdbm/Makefile
  1023.                  cd sdbm && $(MAKE) all
  1024.          ';
  1025.          }
  1026.  
  1027.  
  1028.      HHHHiiiinnnnttttssssffffiiiilllleeee ssssuuuuppppppppoooorrrrtttt
  1029.  
  1030.      MakeMaker.pm uses the architecture specific information from Config.pm.
  1031.      In addition it evaluates architecture specific hints files in a hints/
  1032.      directory. The hints files are expected to be named like their
  1033.      counterparts in PERL_SRC/hints, but with an .pl file name extension (eg.
  1034.      next_3_2.pl). They are simply evaled by MakeMaker within the
  1035.      _W_r_i_t_e_M_a_k_e_f_i_l_e() subroutine, and can be used to execute commands as well
  1036.      as to include special variables. The rules which hintsfile is chosen are
  1037.      the same as in Configure.
  1038.  
  1039.      The hintsfile is _e_v_a_l()ed immediately after the arguments given to
  1040.      WriteMakefile are stuffed into a hash reference $self but before this
  1041.      reference becomes blessed. So if you want to do the equivalent to
  1042.      override or create an attribute you would say something like
  1043.  
  1044.          $self->{LIBS} = ['-ldbm -lucb -lc'];
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.                                                                        PPPPaaaaggggeeee 11116666
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  1061.  
  1062.  
  1063.  
  1064.      DDDDiiiissssttttrrrriiiibbbbuuuuttttiiiioooonnnn SSSSuuuuppppppppoooorrrrtttt
  1065.  
  1066.      For authors of extensions MakeMaker provides several Makefile targets.
  1067.      Most of the support comes from the ExtUtils::Manifest module, where
  1068.      additional documentation can be found.
  1069.  
  1070.      make distcheck
  1071.          reports which files are below the build directory but not in the
  1072.          MANIFEST file and vice versa. (See _E_x_t_U_t_i_l_s::_M_a_n_i_f_e_s_t::_f_u_l_l_c_h_e_c_k()
  1073.          for details)
  1074.  
  1075.      make skipcheck
  1076.          reports which files are skipped due to the entries in the
  1077.          MANIFEST.SKIP file (See _E_x_t_U_t_i_l_s::_M_a_n_i_f_e_s_t::_s_k_i_p_c_h_e_c_k() for details)
  1078.  
  1079.      make distclean
  1080.          does a realclean first and then the distcheck. Note that this is not
  1081.          needed to build a new distribution as long as you are sure, that the
  1082.          MANIFEST file is ok.
  1083.  
  1084.      make manifest
  1085.          rewrites the MANIFEST file, adding all remaining files found (See
  1086.          _E_x_t_U_t_i_l_s::_M_a_n_i_f_e_s_t::_m_k_m_a_n_i_f_e_s_t() for details)
  1087.  
  1088.      make distdir
  1089.          Copies all the files that are in the MANIFEST file to a newly created
  1090.          directory with the name $(DISTNAME)-$(VERSION). If that directory
  1091.          exists, it will be removed first.
  1092.  
  1093.      make disttest
  1094.          Makes a distdir first, and runs a perl Makefile.PL, a make, and a
  1095.          make test in that directory.
  1096.  
  1097.      make tardist
  1098.          First does a distdir. Then a command $(PREOP) which defaults to a
  1099.          null command, followed by $(TOUNIX), which defaults to a null command
  1100.          under UNIX, and will convert files in distribution directory to UNIX
  1101.          format otherwise. Next it runs tar on that directory into a tarfile
  1102.          and deletes the directory. Finishes with a command $(POSTOP) which
  1103.          defaults to a null command.
  1104.  
  1105.      make dist
  1106.          Defaults to $(DIST_DEFAULT) which in turn defaults to tardist.
  1107.  
  1108.      make uutardist
  1109.          Runs a tardist first and uuencodes the tarfile.
  1110.  
  1111.      make shdist
  1112.          First does a distdir. Then a command $(PREOP) which defaults to a
  1113.          null command. Next it runs shar on that directory into a sharfile and
  1114.          deletes the intermediate directory again. Finishes with a command
  1115.          $(POSTOP) which defaults to a null command.  Note: For shdist to work
  1116.  
  1117.  
  1118.  
  1119.                                                                        PPPPaaaaggggeeee 11117777
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  1127.  
  1128.  
  1129.  
  1130.          properly a shar program that can handle directories is mandatory.
  1131.  
  1132.      make zipdist
  1133.          First does a distdir. Then a command $(PREOP) which defaults to a
  1134.          null command. Runs $(ZIP) $(ZIPFLAGS) on that directory into a
  1135.          zipfile. Then deletes that directory. Finishes with a command
  1136.          $(POSTOP) which defaults to a null command.
  1137.  
  1138.      make ci
  1139.          Does a $(CI) and a $(RCS_LABEL) on all files in the MANIFEST file.
  1140.  
  1141.      Customization of the dist targets can be done by specifying a hash
  1142.      reference to the dist attribute of the WriteMakefile call. The following
  1143.      parameters are recognized:
  1144.  
  1145.          CI           ('ci -u')
  1146.          COMPRESS     ('compress')
  1147.          POSTOP       ('@ :')
  1148.          PREOP        ('@ :')
  1149.          TO_UNIX      (depends on the system)
  1150.          RCS_LABEL    ('rcs -q -Nv$(VERSION_SYM):')
  1151.          SHAR         ('shar')
  1152.          SUFFIX       ('Z')
  1153.          TAR          ('tar')
  1154.          TARFLAGS     ('cvf')
  1155.          ZIP          ('zip')
  1156.          ZIPFLAGS     ('-r')
  1157.  
  1158.      An example:
  1159.  
  1160.          WriteMakefile( 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" })
  1161.  
  1162.  
  1163. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  1164.      ExtUtils::MM_Unix, ExtUtils::Manifest, ExtUtils::testlib,
  1165.      ExtUtils::Install, ExtUtils::embed
  1166.  
  1167. AAAAUUUUTTTTHHHHOOOORRRRSSSS
  1168.      Andy Dougherty <_d_o_u_g_h_e_r_a@_l_a_f_c_o_l._l_a_f_a_y_e_t_t_e._e_d_u>, Andreas Koenig
  1169.      <_A._K_o_e_n_i_g@_f_r_a_n_z._w_w._T_U-_B_e_r_l_i_n._D_E>, Tim Bunce <_T_i_m._B_u_n_c_e@_i_g._c_o._u_k>.  VMS
  1170.      support by Charles Bailey <_b_a_i_l_e_y@_g_e_n_e_t_i_c_s._u_p_e_n_n._e_d_u>.  OS/2 support by
  1171.      Ilya Zakharevich <_i_l_y_a@_m_a_t_h._o_h_i_o-_s_t_a_t_e._e_d_u>.  Contact the makemaker
  1172.      mailing list mailto:makemaker@franz.ww.tu-berlin.de, if you have any
  1173.      questions.
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.                                                                        PPPPaaaaggggeeee 11118888
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))                                  EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMaaaakkkkeeeeMMMMaaaakkkkeeeerrrr((((3333))))
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.                                                                        PPPPaaaaggggeeee 11119999
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.